package router

import (
	"api-getway/handler/api"
	"api-getway/handler/middleware"

	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	goods := r.Group("goods")
	{
		goods.POST("login", api.Login) //登录
		goods.Use(middleware.Auth())   //中间件
		goods.POST("add", api.Add)     //商品添加

	}
}
